<?php require("../../Connections/cotiza.php"); ?>
<?php 
	$proc   = $_GET['proc'];
	$solic  = $_GET['solic'];
	$insumo = $_GET['insumo'];
	$cant   = $_GET['cant'];
	$um		= $_GET['um'];
	
	$query = "INSERT INTO insd_det(insd_pt_id,insd_solic_id,insd_proc_id,insd_cantidad,insd_um) 
	               VALUES('$insumo','$solic',$proc,$cant,'$um') 
  ON DUPLICATE KEY UPDATE insd_cantidad = $cant, insd_um = '$um'";

	mysql_select_db($database_cotiza);
	mysql_query($query,$cotiza)or die(mysql_error());
?>
<?php 
mysql_close($cotiza);
?>